package aTurk;
import java.util.Comparator;


public class ResValComperator implements Comparator<Problem> {

	@Override
	public int compare(Problem p1, Problem p2) {
		if(p1.getResVal()>p2.getResVal())
			return 1;
		else if(p1.getResVal()<p2.getResVal())
			return -1;
		return 0;
	}

}
